package com.icode.web.validator;

import com.icode.core.dto.house.BuildingTypeDTO;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

/**
 * Created with IntelliJ IDEA.
 * User: sunk
 * Date: 15-1-6
 * Time: 上午11:27
 * To change this template use File | Settings | File Templates.
 */
public class BuildingTypeValidator implements Validator {
    @Override
    public boolean supports(Class<?> clazz) {
        return BuildingTypeDTO.class.equals(clazz);
    }

    @Override
    public void validate(Object target, Errors errors) {
        BuildingTypeDTO buildingTypeDTO = (BuildingTypeDTO) target;
    }
}
